﻿@model IEnumerable<Free2AskModel.Tag>

@{
    ViewBag.Title = "Tags";
}

<h2>Index</h2>


<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Frequency)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Frequency)
        </td>
        <td>            
            @Html.ActionLink("Delete", "Delete", new { tagName=item.Name })
        </td>
    </tr>
}

</table>
